home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / borllexp / blx_1_1 / technix.pas < prev    next >
Pascal/Delphi Source File  |  1991-01-21  |  343b  |  18 lines

  1. program FileDemo;
  2. const
  3.   FileName = 'TEST.TXT';
  4. var
  5.   FileVar : Text;
  6.   InString : String;
  7. begin
  8.   Assign(FileVar,FileName);
  9.   Rewrite(FileVar);
  10.   WriteLn(FileVar,'Write this to a file');
  11.   Close(FileVar);
  12.   Assign(FileVar,FileName);
  13.   Reset(FileVar);
  14.   Readln(FileVar,InString);
  15.   Close(FileVar);
  16.   WriteLn(InString);
  17. end.
  18.